package com.ziqikeji.xianyan.dto.user;


import com.ziqikeji.xianyan.entity.user.User;
import java.util.Date;

/**
 * 用户 DTO
 * @author liuyu
 */
public class UserDTO {
    private String id;
    private String loginName;
    private String password;
    private String realName;
    private Date registrationDate;

    public UserDTO() {
    }

    public UserDTO(User user) {
        this.id = user.getId();
        this.loginName = user.getLoginName();
//        this.password = user.getPassword();
        this.realName = user.getRealName();
        this.registrationDate = user.getRegistrationDate();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Date getRegistrationDate() {
        return registrationDate;
    }

    public void setRegistrationDate(Date registrationDate) {
        this.registrationDate = registrationDate;
    }

    @Override
    public String toString() {
        return "UserDTO{" +
                "id='" + id + '\'' +
                ", loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", realName='" + realName + '\'' +
                ", registrationDate=" + registrationDate +
                '}';
    }
}
